
package com.jf.cloud.api.delivery.dto;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.Date;

/**
 * 自提点销售记录
 *
 * @author zz
 * @date 2020-06-04 15:31:29
 */
public class StationSalesDTO {

    @Schema(description = "支付订单数", required = true)
    private Integer payOrderNumber;

    /**
     * 平台优惠金额
     */
    private Double  platformAmount;

    /**
     * 支付时间
     */
    private Date payTime;

    /**
     * 核销数量
     */
    private Integer writeOffNum;

    /**
     * 核销数量
     */
    private String userId;

    /**
     * 核销数量
     */
    private Double  productNums;

    /**
     * 实际支付金额
     */
    private Double  actualTotal;
    /**
     * 支付人数
     */
    private Integer  userNum;

    /**
     *  支付金额 = 平台优惠金额 + 实际支付金额
     */
    @Schema(description  =  "支付金额", required = true)
    private Double  payAmount;

    @Schema(description  =  "客单价", required = true)
    private Double  customerUnitPrice;

    @Schema(description  =  "1:单天营业额，2:该月营业额", required = true)
    private Integer  salesType;

    public Integer  getPayOrderNumber() {
        return payOrderNumber;
    }

    public void setPayOrderNumber(Integer  payOrderNumber) {
        this.payOrderNumber = payOrderNumber;
    }

    public Double getPlatformAmount() {
        return platformAmount;
    }

    public void setPlatformAmount(Double platformAmount) {
        this.platformAmount = platformAmount;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Integer  getWriteOffNum() {
        return writeOffNum;
    }

    public void setWriteOffNum(Integer  writeOffNum) {
        this.writeOffNum = writeOffNum;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Double getProductNums() {
        return productNums;
    }

    public void setProductNums(Double productNums) {
        this.productNums = productNums;
    }

    public Double getActualTotal() {
        return actualTotal;
    }

    public void setActualTotal(Double actualTotal) {
        this.actualTotal = actualTotal;
    }

    public Integer getUserNum() {
        return userNum;
    }

    public void setUserNum(Integer userNum) {
        this.userNum = userNum;
    }

    public Double getPayAmount() {
        return payAmount;
    }

    public void setPayAmount(Double payAmount) {
        this.payAmount = payAmount;
    }

    public Double getCustomerUnitPrice() {
        return customerUnitPrice;
    }

    public void setCustomerUnitPrice(double customerUnitPrice) {
        this.customerUnitPrice = customerUnitPrice;
    }

    public Integer getSalesType() {
        return salesType;
    }

    public void setSalesType(Integer salesType) {
        this.salesType = salesType;
    }

    @Override
    public String toString() {
        return "StationSalesDTO{" +
                "payOrderNumber=" + payOrderNumber +
                ", platformAmount=" + platformAmount +
                ", payTime=" + payTime +
                ", writeOffNum=" + writeOffNum +
                ", userId='" + userId + '\'' +
                ", productNums=" + productNums +
                ", actualTotal=" + actualTotal +
                ", userNum=" + userNum +
                ", payAmount=" + payAmount +
                ", customerUnitPrice=" + customerUnitPrice +
                ", salesType=" + salesType +
                '}';
    }
}
